function Browser() {
	this.xWindow = null;
    this.isIE    = false;
    this.isNS    = false;
    this.version = null;
    this.userAgent = "Unknown";
    
    this.xWindow = $(window);

    var ua, s, i;
    ua = navigator.userAgent;
    this.userAgent = ua;
	
    s = "MSIE";
    if ((i = ua.indexOf(s)) != -1) {
        this.isIE = true;
        this.version = parseFloat(ua.substr(i + s.length));
        return;
    }

    s = "Netscape6/";
    if ((i = ua.indexOf(s)) != -1) {
        this.isNS = true;
        this.version = parseFloat(ua.substr(i + s.length));
        return;
    }

    // Treat any other "Gecko" browser as NS 6.1.
    s = "Gecko";
    if ((i = ua.indexOf(s)) != -1) {
        this.isNS = true;
        this.version = 6.1;
        return;
    }
}
